<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
  <head>
    <title></title>   
    <base href="<%=basePath%>">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0"> 
	<%@ include file="/common/importJsCss.jsp" %>
 	<script type="text/javascript" id="preJavascript">
$(function(){
	amplify.store( "storeExample1", { foo: "bar" } );
	amplify.store( "storeExample2", "baz" );
	// retrieve the data later via the key
	var myStoredValue = amplify.store( "storeExample1" ),
    	myStoredValue2 = amplify.store( "storeExample2" ),
    	myStoredValues = amplify.store();
		out("myStoredValue.foo",myStoredValue.foo);
		out("myStoredValue2",myStoredValue2);
		out("myStoredValues.storeExample1.foo",myStoredValues.storeExample1.foo); // bar
		out("myStoredValues.storeExample2",myStoredValues.storeExample2); // baz		
});
	</script>
  </head>  
  <body>
	<div class="container">
        <div class="page-header">
            <h2>数据存储</h2>
        </div>
<pre class="prettyprint linenums"></pre>
    </div>	
  </body>
</html>
